export function deepCopy(obj, isDeep=true){
  const newObj = Array.isArray(obj) ? [] : {};
  for (const key in obj){
      const value = obj[key];
      newObj[key] = !!isDeep && typeof value === 'object' && value !== null ? deepCopy(value, isDeep) : value;
  }
  return newObj;
}